package com.ocom.common.vo.human;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.ocom.common.entity.typehandler.PersonInfoHandle;
import lombok.Data;

/**
 * @Description: TODO
 * @Author: 朱晖
 * @Date: 2022/7/11
 **/
@Data
public class XfUserInfoVo {

	@JsonProperty("accountId")
	Long accountId;

	@JsonProperty("companyId")
	Long companyId;
	@JsonProperty("pId")
	Long pId;
	@JsonProperty("pCode")
	String pCode;
	@JsonProperty("pName")
	String pName;

	Long deptId = 0l;
	@JsonProperty("deptName")
	String deptName = "";
	//账户号
	@JsonProperty("accountNo")
	String accountNo = "";
	//卡码内容
	@JsonProperty("cardNo")
	String cardNo = "";
	//现金钱余额
	@JsonProperty("chargeBalance")
	Integer chargeBalance = 0;

	//现金钱余额
	@JsonProperty("accountSubsidyMoney")
	Integer accountSubsidyMoney = 0;

	@JsonProperty("signType")
	Integer signType=0;

	@JsonProperty("signNo")
	String signNo = "";

	@JsonProperty("pPhotoUrl")
	String pPhotoUrl = "";

	@JsonProperty("pPhotoUrl2")
	String pPhotoUrl2 = "";

	@JsonProperty("pPhone")
	String pPhone = "";

	@JsonProperty("pIdentity")
	String pIdentity = "";

	@JsonProperty("accTypeId")
	Long accTypeId;

	@Override
	public String toString() {
		return "XfUserInfoVo{" +
				"companyId=" + companyId +
				", pId=" + pId +
				", pCode='" + pCode + '\'' +
				", pName='" + pName + '\'' +
				", deptId=" + deptId +
				", deptName='" + deptName + '\'' +
				", accountNo='" + accountNo + '\'' +
				", cardNo='" + cardNo + '\'' +
				", chargeBalance=" + chargeBalance +
				", accountSubsidyMoney=" + accountSubsidyMoney +
				", signType=" + signType +
				", signNo='" + signNo + '\'' +
				", pPhotoUrl='" + pPhotoUrl + '\'' +
				", pPhotoUrl2='" + pPhotoUrl2 + '\'' +
				", pPhone='" + pPhone + '\'' +
				", pIdentity='" + pIdentity + '\'' +
				", accTypeId=" + accTypeId +
				'}';
	}


	public void setpPhone(String pPhone) {
		this.pPhone = PersonInfoHandle.decryptS(pPhone);
	}

	public void setpIdentity(String pIdentity) {
		this.pIdentity = PersonInfoHandle.decryptS(pIdentity);
	}
}
